package com.hopital5.zhangyz.service;

import com.hopital5.zhangyz.model.Model;
import com.hopital5.zhangyz.repository.ModelRepository;
import com.hopital5.zhangyz.vo.request.ModelVoRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ModelService {
    @Autowired
    ModelRepository modelRepository;

    public Model save(ModelVoRequest modelVoRequest) {
        return null;
    }

    public Model update(ModelVoRequest modelVoRequest) {
        return null;
    }

    public Model findOne(Long id) {
        return modelRepository.findOne(id);
    }

    public void delete(Long id) {
        modelRepository.delete(id);
    }

    public void delete(Model model) {
        modelRepository.delete(model);
    }
}

